#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{
#if defined (Q_OS_ANDROID)
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);  // Qt5.6
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);  // Qt5.14
    qputenv("QT_SCALE_FACTOR", "0.5");  // 整体缩放0.5倍
#endif
    QApplication a(argc, argv);    
    MainWindow w;
    w.show();
    return a.exec();
}
